package com.example.leetcode.slidingwindow;

import com.example.leetcode.slidingwindow.common.SlidingWindowUtils;

class Solution340 {
    public int lengthOfLongestSubstringKDistinct(String s, int k) {
        return SlidingWindowUtils.lengthOfLongestSubstringKDistinct(s, k);
    }
}

public class leetcode340 {
    public static void main(String[] args) {
        Solution340 solution340 = new Solution340();
        System.out.println(solution340.lengthOfLongestSubstringKDistinct("eceba", 2));
        System.out.println(solution340.lengthOfLongestSubstringKDistinct("aa", 1));
    }
}
